package cn.demo.domain;

/**
 * Created by lixiangjun on 2017/7/25.
 */
public class BaseDomain {
    private Long id;
    private Long createDate;
    private Long creator;

    /**
     * 最后修改人及最后修改时间
     */
    private Object lastModifier;
    private Long lastModDate = System.currentTimeMillis();
    private Integer status;

    private String creatorName;
    private String lastModifierName;

    public Object getLastModifier() {
        return lastModifier;
    }

    public void setLastModifier(Object lastModifier) {
        this.lastModifier = lastModifier;
    }

    public Long getLastModDate() {
        return lastModDate;
    }

    public void setLastModDate(Long lastModDate) {
        this.lastModDate = lastModDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getLastModifierName() {
        return lastModifierName;
    }

    public void setLastModifierName(String lastModifierName) {
        this.lastModifierName = lastModifierName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Long createDate) {
        this.createDate = createDate;
    }

    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    @Override
    public String toString() {
        return "BaseDomain{" +
                "id=" + id +
                ", createDate=" + createDate +
                ", creator=" + creator +
                ", lastModifier=" + lastModifier +
                ", lastModDate=" + lastModDate +
                ", status=" + status +
                ", creatorName='" + creatorName + '\'' +
                ", lastModifierName='" + lastModifierName + '\'' +
                '}';
    }
}
